<!DOCTYPE html>
<html lang="th">
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="keywords" content="">
    <meta name="author" content="">
    <link rel="shortcut icon" href="favicon4.ico" type="image/x-icon" />
    <title></title>

    <!-- CSS -->
    <link href="<?php echo $stylepath;?>/bootstrap.css" rel="stylesheet">
    <link href="<?php echo $stylepath;?>/master.css" rel="stylesheet">
    
    <!-- Javascript -->
    <script type="text/javascript" src="http://code.jquery.com/jquery.js"></script>
    <script type="text/javascript" src="<?php echo $jspath;?>/bootstrap.js"></script>
    <script type="text/javascript" src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="<?php echo $jspath;?>/html5shiv.js"></script>
      <script src="<?php echo $jspath;?>/respond.min.js"></script>
    <![endif]-->
  </head>
  <body>
    <div id="wrap">
      <div class="container">
        <!-- Fixed navbar -->
        <div class="navbar navbar-default navbar-fixed-top">
          <div class="container">
            <div class="navbar-header">
              <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".top-navbar">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
              </button>
            </div>
            <div class="collapse navbar-collapse top-navbar">
              <ul class="nav navbar-nav">
                <li <?php echo ($this->uri->segment(1) == "") ? 'class="active"':'';?>><a href="<?php echo base_url();?>">หน้าแรก</a></li>
                <li <?php echo ($this->uri->segment(1) == "forum") ? 'class="active"':'';?>><a href="<?php echo base_url("forum");?>">กระดานสนทนา</a></li>
                <li <?php echo ($this->uri->segment(2) == "aboutus") ? 'class="active"':'';?>><a href="#about">เกี่ยวกับเรา</a></li>
                <li <?php echo ($this->uri->segment(2) == "contactus") ? 'class="active"':'';?>><a href="#contact">ติดต่อเรา</a></li>
              </ul>
            </div><!--/.nav-collapse -->
          </div>
        </div>
        <!-- End Fixed navbar -->
        <!-- Content -->
        <header>
          <section class="head">
            <h1>รถจักรยานมือสอง</h1>
          </section>
          <nav class="navbar navbar-default menu-list">
            <div class="navbar-header">
              <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".menu-collapse">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
              </button>
            </div>
            <div class="collapse navbar-collapse menu-collapse">
              <ul class="nav navbar-nav">
                <li><a class="bg_orange" href="<?php echo base_url();?>">หน้าแรก</a></li>
                <li><a class="bg_green" href="#">จักรยานเสือภูเขา</a></li>
                <li><a class="bg_blue" href="#">จักรยานเสือหมอบ</a></li>
                <li><a class="bg_amethyse"href="#">จักรยานฟิกเกียร์</a></li>
                <li><a class="bg_turquoise" href="#">จักรยานทัวริ่ง</a></li>
                <li><a class="bg_alizarin" href="#">จักรยานพับ</a></li>
                <li><a class="bg_yellow"href="#">ชุดแต่งกาย</a></li>
                <li><a class="bg_green"href="#">อะไหล่จักรยาน</a></li>
                <li><a class="bg_amethyse"href="#">อุปกรณ์เสริม</a></li>
                
              </ul>
            </div><!--/.nav-collapse -->
          </nav>
        </header>
        <section class="maincontent">
          <section class="col-sm-12 col-md-8">
            <div class="row">
              <div class="col-xs-12">
                <?php
                $error = $this->session->flashdata('error');
                $success = $this->session->flashdata('success');
                $info = $this->session->flashdata('info');
                if(!empty($error)){
                  ?>
                  <div class="alert alert-danger alert-dismissible" role="alert">
                    <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                    <strong>Error!</strong> <?php echo $error;?>
                  </div>
                  <?php
                }
                if(!empty($success)){
                  ?>
                  <div class="alert alert-success alert-dismissible" role="alert">
                    <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                    <strong>Success!</strong> <?php echo $success;?>
                  </div>
                  <?php
                }
                if(!empty($info)){
                  ?>
                  <div class="alert alert-info alert-dismissible" role="alert">
                    <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                    <strong>Information</strong> <?php echo $info;?>
                  </div>
                  <?php
                }
                ?>
              </div>
            </div>
            <?php
              echo $maincontent;
            ?>
          </section>
          <section class="col-sm-12 col-md-4">
            {_widget member}
            {_include facebook}
          </section>
        </section>
        <footer class="footer">
          <div class="footer-top">
            <address>
              <img src="<?php echo $imagepath;?>/logo-white.png" width="180"><br>
              <strong>Phuket Innova Co., Ltd.</strong><br>
              80/86 Moo.3<br>
              T.Rassada A.Muang<br>
              Phuket<br>83000
            </address>
          </div>
          <div class="footer-bottom">
            <div style="font-size:0.75em;text-align:center;">Copyright 2014 by Phuket Innova Co., Ltd. All Rights Reserved. (Executed time:{elapsed_time} RAM Used:{memory_usage})</div>
          </div>
        </footer>
        <!-- End Content -->
      </div>
    </div>
    <div id="fb-root"></div>
    <script>(function(d, s, id) {
      var js, fjs = d.getElementsByTagName(s)[0];
      if (d.getElementById(id)) return;
      js = d.createElement(s); js.id = id;
      js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&appId=276267482439916&version=v2.0";
      fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>
  </body>
</html>